source: scolib/trunk/src/CMakeLists.txt @ 7414

Revision 7414, 1.2 KB checked in by wjbohnh, 2 years ago (diff)

Sync'd-up CMake build harness with autotools; i.e. added new PIDOMS code.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date ID Revision
  • Property svn:mime-type set to text/plain
Line 
1include_directories(${CMAKE_CURRENT_SOURCE_DIR})
2
3add_library(scolib
4  libs/Direct.cpp
5  libs/DockingPS.cpp
6  libs/PatternSearch.cpp
7  libs/positive_basis.cpp
8  libs/SolisWets.cpp
9  libs/DynamicGSS.cpp
10  libs/MultiStatePS.cpp
11  libs/MultiStart.cpp
12  libs/EAminlp.cpp
13  libs/SCORegistrations.cpp
14  libs/PIDOMS.cpp
15  libs/PLGO.cpp
16  libs/TGPO.cpp
17)
18target_link_libraries(scolib
19  ${Boost_SIGNALS_LIBRARY}
20  utilib
21  pebbl
22)
23
24if(HAVE_AMPL)
25target_link_libraries(scolib
26  amplsolver
27)
28endif()
29
30if(HAVE_AMPL)
31  include_directories(${AMPL_INCLUDE_DIRS})
32  add_executable(scolib_driver exec/scolib.cpp exec/funcadd.c)
33else()
34  add_executable(scolib_driver exec/scolib.cpp)
35endif()
36
37target_link_libraries(scolib_driver
38  colin
39  scolib
40  utilib
41  pebbl
42  ${Boost_SIGNALS_LIBRARY}
43  tinyxml
44  dl
45)
46
47add_executable(docking
48  exec/docking.cpp
49)
50
51add_executable(simple
52  exec/simple.cpp
53)
54target_link_libraries(simple
55  colin
56  scolib
57)
58
59install(TARGETS scolib EXPORT ${ExportTarget} DESTINATION lib)
60install(TARGETS scolib_driver EXPORT ${ExportTarget} DESTINATION bin)
61install(TARGETS docking EXPORT ${ExportTarget} DESTINATION bin)
62install(TARGETS simple EXPORT ${ExportTarget} DESTINATION bin)
63
64install(DIRECTORY scolib DESTINATION include PATTERN .svn EXCLUDE)
Note: See TracBrowser for help on using the repository browser.