Skip to content

Commit

Permalink
Fix cmake error: "CMake Error at CMakeLists.txt:195 (install): instal…
Browse files Browse the repository at this point in the history
…l FILES given no DESTINATION!"

Add comments
  • Loading branch information
Chocobo1 committed Mar 2, 2016
1 parent ba1b85b commit e9aff3f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,18 @@ if(${CMAKE_C_COMPILER_ID} STREQUAL "GNU" OR ${CMAKE_C_COMPILER_ID} STREQUAL "Cla
if (VALGRIND)
option(USE_VALGRIND "Use valgrind when testing" true)
endif()
endif()

set(TRANSLATION_PATH ${CMAKE_INSTALL_DATADIR}/chewing-editor/translations)
set(TRANSLATION_PATH ${CMAKE_INSTALL_DATADIR}/chewing-editor/translations)
add_definitions(-DTRANSLATION_PATH="${TRANSLATION_PATH}")

add_definitions(-DTRANSLATION_PATH="${TRANSLATION_PATH}")
else()
# FIXME: Windows TRANSLATION_PATH path is?
#add_definitions(-DTRANSLATION_PATH="???")
endif()
add_definitions(-DTESTDATA="${PROJECT_SOURCE_DIR}/test/data")

find_package(PkgConfig)

# MODIFY IF NEEDED, e.g. ${CMAKE_CURRENT_SOURCE_DIR}/libchewing/lib/*.lib
set(CHEWING_LIBRARIES )
# MODIFY IF NEEDED, e.g. ${CMAKE_CURRENT_SOURCE_DIR}/libchewing/include/chewing
set(CHEWING_INCLUDE_DIRS )

if (CHEWING_INCLUDE_DIRS AND CHEWING_LIBRARIES)
Expand Down

0 comments on commit e9aff3f

Please sign in to comment.