Commit d294c760 authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

rename some more

parent e7aea674
......@@ -279,12 +279,12 @@ set(hpp_for_lib
#file(GLOB_RECURSE hpp_for_lib ${PROJECT_SOURCE_DIR}/*.hpp)
LIST(APPEND source_files ${hpp_for_lib} ${cpp_for_lib})
add_library(turtle ${source_files})
add_library(TurTLE ${source_files})
target_link_libraries(turtle ${TURTLE_LIBS})
target_link_libraries(TurTLE ${TURTLE_LIBS})
install(TARGETS turtle EXPORT TURTLE_EXPORT DESTINATION lib/ )
install(DIRECTORY ${PROJECT_SOURCE_DIR}/cpp/ DESTINATION include/turtle/ FILES_MATCHING PATTERN "*.h*")
install(TARGETS TurTLE EXPORT TURTLE_EXPORT DESTINATION lib/ )
install(DIRECTORY ${PROJECT_SOURCE_DIR}/cpp/ DESTINATION include/TurTLE/ FILES_MATCHING PATTERN "*.h*")
#####################################################################################
## Export the configuration
......@@ -292,18 +292,18 @@ install(DIRECTORY ${PROJECT_SOURCE_DIR}/cpp/ DESTINATION include/turtle/ FILES_M
configure_file(${PROJECT_SOURCE_DIR}/cmake/TurTLEConfig.cmake.in ${PROJECT_BINARY_DIR}/TurTLEConfig.cmake @ONLY)
install(FILES "${PROJECT_BINARY_DIR}/TurTLEConfig.cmake" DESTINATION lib/)
export(TARGETS turtle FILE "${PROJECT_BINARY_DIR}/TurTLELibraryDepends.cmake")
export(TARGETS TurTLE FILE "${PROJECT_BINARY_DIR}/TurTLELibraryDepends.cmake")
install(EXPORT TURTLE_EXPORT DESTINATION lib/)
#####################################################################################
## Install the python wrapper
# copy command
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E copy_directory ${PROJECT_SOURCE_DIR}/turtle ${PROJECT_BINARY_DIR}/python/turtle/)")
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E copy_directory ${PROJECT_SOURCE_DIR}/TurTLE ${PROJECT_BINARY_DIR}/python/TurTLE/)")
if(EXISTS "${PROJECT_SOURCE_DIR}/host_info.py")
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/host_info.py ${PROJECT_BINARY_DIR}/python/turtle/)")
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/host_info.py ${PROJECT_BINARY_DIR}/python/TurTLE/)")
else()
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/pc_host_info.py ${PROJECT_BINARY_DIR}/python/turtle/host_info.py)")
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/pc_host_info.py ${PROJECT_BINARY_DIR}/python/TurTLE/host_info.py)")
endif()
install(CODE "execute_process(COMMAND python ${PROJECT_SOURCE_DIR}/setup.py install --force --prefix=${CMAKE_INSTALL_PREFIX} WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/python/)")
......@@ -80,11 +80,11 @@ setup(
package_data = {'TurTLE': ['test/B32p1e4_checkpoint_0.h5']},
entry_points = {
'console_scripts': [
'turtle = turtle.__main__:main',
'turtle.test_NSVEparticles = turtle.test.test_turtle_NSVEparticles:main',
'turtle.test_particles = turtle.test.test_particles:main',
'turtle.test_Parseval = turtle.test.test_Parseval:main',
'turtle.test_fftw = turtle.test.test_fftw:main'],
'turtle = TurTLE.__main__:main',
'turtle.test_NSVEparticles = TurTLE.test.test_turtle_NSVEparticles:main',
'turtle.test_particles = TurTLE.test.test_particles:main',
'turtle.test_Parseval = TurTLE.test.test_Parseval:main',
'turtle.test_fftw = TurTLE.test.test_fftw:main'],
},
version = VERSION,
########################################################################
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment