Index: trunk/Alasca/CMakeLists.txt
===================================================================
--- trunk/Alasca/CMakeLists.txt	(revision 37)
+++ trunk/Alasca/CMakeLists.txt	(revision 99)
@@ -1,33 +1,25 @@
+#########################quick start############################################
+#cmake ../ -G "CodeBlocks - Unix Makefiles"
+#make
+#make install
+#make clean
+################################################################################
 project(Alasca)
+set(${PROJECT_NAME}_VERSION_MAJOR 0)
+set(${PROJECT_NAME}_VERSION_MINOR 1)
+add_definitions( -DALASCAXT_EXPORTS ) 
+################################################################################
+create_export(EXPORT_HDR ${PROJECT_NAME})
+pacpus_plugin(PLUGIN_CPP PLUGIN_HDR ${PROJECT_NAME})
+add_definitions (${QT_DEFINITIONS})
 
+find_package(Qt5Network REQUIRED)
 ################################################################################
-add_definitions( -DALASCAXT_EXPORTS )
-
-
-
-# ========================================
-# Configure qt4
-# ========================================
-if(QT4_FOUND)
-  set(QT_USE_QTXML true)
-  set(QT_USE_QTNETWORK true)
-  include(${QT_USE_FILE})
-else()
-  message(ERROR "Qt4 needed")
-endif()
-
-# ========================================
-# Compiler definitions
-# ========================================
-add_definitions(
-  ${QT_DEFINITIONS}
-)
-
-# ========================================
-# Include directories
-# ========================================
-include_directories(
-  ${PROJECT_BINARY_DIR}
-  ${QT_INCLUDE_DIR}
+# DIRECTORIES
+include_directories( 
+    ${PROJECT_BINARY_DIR}
+    ${QT_INCLUDE_DIR}
+    ${PACPUS_INCLUDE_DIR} 
+    ${PACPUS_INCLUDE_DIR}/Pacpus/
 )
 
@@ -35,55 +27,47 @@
 # Link directories
 # ========================================
-link_directories( ${PACPUS_LIB_DIR}
+link_directories( 
+	${PACPUS_LIB_DIR}
 )
 
 
-pacpus_plugin(PLUGIN_CPP PLUGIN_H ${PROJECT_NAME} )
-
-# ========================================
-# List of sources
-# ========================================
-set(
-    PROJECT_SRCS
-  AlascaComponent.cpp
-  AlascaComponent.h
-  AlascaSocket.cpp
-  AlascaSocket.h
+################################################################################
+# FILES
+set(PROJECT_HDRS
+    ${EXPORT_HDR}
+    AlascaComponent.h
+    AlascaSocket.h 
+    xml/${PROJECT_NAME}.xml
+    xml/${PROJECT_NAME}_d.xml
+)
+set(PROJECT_SRCS
     ${PLUGIN_CPP}
+    AlascaComponent.cpp
+    AlascaSocket.cpp 
 )
 
-# ========================================
-# Files to MOC
-# ========================================
-set(
-    FILES_TO_MOC
-     AlascaComponent.h
+set(FILES_TO_MOC
+    ${PLUGIN_HDR}
+    AlascaComponent.h
     AlascaSocket.h
-    ${PLUGIN_H}
 )
 
-set(
-    UI_FILES
-
+set(UI_FILES
 )
 
-# ========================================
-# Call MOC
-# ========================================
-qt4_wrap_cpp(
-    PROJECT_MOC_SRCS
+################################################################################
+# Qt: call moc, uic
+qt_wrap_cpp(PROJECT_MOC_SRCS
     ${FILES_TO_MOC}
 )
 
-qt4_wrap_ui(
-    PROJECT_UI_SRCS
+qt_wrap_ui(PROJECT_UI_SRCS
     ${UI_FILES}
 )
 
-# ========================================
-# Build a library
-# ========================================
-pacpus_add_library(
-    ${PROJECT_NAME} SHARED
+################################################################################
+# BUILD and LINK
+pacpus_add_library(${PROJECT_NAME} SHARED
+    ${PROJECT_HDRS}
     ${PROJECT_SRCS}
     ${PROJECT_MOC_SRCS}
@@ -91,6 +75,8 @@
 )
 
-message(STATUS  ${PACPUS_DEPENDENCIES_LIB} ) 
 
+# ========================================
+# Libraries
+# ========================================
 set(LIBS
     optimized FileLib debug FileLib_d
@@ -103,21 +89,16 @@
     )
 endif()
-
-# ========================================
-# Libraries
-# ========================================
-# All the platform
-target_link_libraries(
-    ${PROJECT_NAME}
-    ${PACPUS_LIBRARIES}
-    ${QT_LIBRARIES}
-	${PACPUS_DEPENDENCIES_LIB}
-	${LIBS}
-)
-
+# LINK 
+target_link_libraries(${PROJECT_NAME} 
+		      ${PACPUS_LIBRARIES} 
+	              ${PACPUS_DEPENDENCIES_LIB} 
+                      ${LIBS}
+                      ${QT_LIBRARIES} 
+                     )
+qt5_use_modules(${PROJECT_NAME} Network)
+################################################################################
+# FOLDERS
 pacpus_folder(${PROJECT_NAME} "components")
-
-# ========================================
-# Install
-# ========================================
-pacpus_install(${PROJECT_NAME})
+################################################################################
+# INSTALL
+pacpus_install(${PROJECT_NAME}) 
