]> Creatis software - FrontAlgorithms.git/blobdiff - lib/Airways/AirwaysLib/CMakeLists.txt
...
[FrontAlgorithms.git] / lib / Airways / AirwaysLib / CMakeLists.txt
similarity index 50%
rename from appli/TempAirwaysAppli/AirwaysLib/CMakeLists.txt
rename to lib/Airways/AirwaysLib/CMakeLists.txt
index 2c05400221c884c639ba198d3f64bf1d791b48e0..712dc2561db49f09bb3b0cee2c0997b8faa67721 100644 (file)
@@ -2,25 +2,23 @@
 ## = Set names and directories =
 ## =============================
 
-SET(lib_NAME AirwaysLib)
+SET(lib_NAME TempAirwaysAppli_AirwaysLib)
 
 INCLUDE_DIRECTORIES(
-  ${PROJECT_SOURCE_DIR}/appli/TempAirwaysAppli/MathLib
-  ${PROJECT_SOURCE_DIR}/appli/TempAirwaysAppli/AirwaysLib
-  ${PROJECT_BINARY_DIR}/appli/TempAirwaysAppli/MathLib
-  ${PROJECT_BINARY_DIR}/appli/TempAirwaysAppli/AirwaysLib
+  ${CMAKE_CURRENT_SOURCE_DIR}/../MathLib
+  ${CMAKE_CURRENT_BINARY_DIR}/../MathLib
   )
 
 ## ===============
 ## = Source code =
 ## ===============
 
-FILE(GLOB lib_HEADERS_H   "*.h")
-FILE(GLOB lib_HEADERS_HPP "*.hpp")
-FILE(GLOB lib_HEADERS_HXX "*.hxx")
-FILE(GLOB lib_SOURCES_C   "*.c")
-FILE(GLOB lib_SOURCES_CPP "*.cpp")
-FILE(GLOB lib_SOURCES_CXX "*.cxx")
+FILE(GLOB lib_HEADERS_H   "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
+FILE(GLOB lib_HEADERS_HPP "${CMAKE_CURRENT_SOURCE_DIR}/*.hpp")
+FILE(GLOB lib_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
+FILE(GLOB lib_SOURCES_C   "${CMAKE_CURRENT_SOURCE_DIR}/*.c")
+FILE(GLOB lib_SOURCES_CPP "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp")
+FILE(GLOB lib_SOURCES_CXX "${CMAKE_CURRENT_SOURCE_DIR}/*.cxx")
 
 ## =====================
 ## = Compilation rules =
@@ -40,6 +38,6 @@ GENERATE_EXPORT_HEADER(
   EXPORT_FILE_NAME ${CMAKE_CURRENT_BINARY_DIR}/${lib_NAME}_Export.h
   STATIC_DEFINE ${lib_NAME}_BUILT_AS_STATIC
   )
-TARGET_LINK_LIBRARIES(${lib_NAME} MathLib ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+TARGET_LINK_LIBRARIES(${lib_NAME} TempAirwaysAppli_MathLib ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
 ## eof - $RCSfile$