forked from SolarTherm/SolarTherm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
35 lines (28 loc) · 980 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
cmake_minimum_required(VERSION 2.6)
project(solartherm)
set(PACKAGE_VERSION 0.1)
enable_testing()
if (DEFINED MODELICA_LIBRARY_INSTALL_DIR)
else()
set(MODELICA_LIBRARY_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/lib/omlibrary/)
#set(MODELICA_LIBRARY_INSTALL_DIR ${HOME}/.openmodelica/libraries/)
endif()
if (DEFINED SOLARTHERM_CLIB_INSTALL_DIR)
else()
set(SOLARTHERM_CLIB_INSTALL_DIR ${MODELICA_LIBRARY_INSTALL_DIR}/SolarTherm/Resources/Library/)
#set(SOLARTHERM_CLIB_INSTALL_DIR lib)
endif()
if (DEFINED FORCE_PYTHON_PREFIX)
else()
#set(FORCE_PYTHON_PREFIX 0)
set(FORCE_PYTHON_PREFIX 1)
endif()
# Used to correctly set PYTHONPATH in local enviroment setup source file.
# Should work out how to do this more intelligently.
set(PYTHON_LIBRARY_VERSION "python2.7")
add_subdirectory(src)
add_subdirectory(tests)
add_subdirectory(examples)
add_subdirectory(resources)
#file(COPY SolarTherm DESTINATION .)
install(DIRECTORY SolarTherm DESTINATION ${MODELICA_LIBRARY_INSTALL_DIR})