Just to make it clear, the first lines of my hello-world's CMakeLists.txt now look like this:
project (hello-again)
cmake_minimum_required (VERSION 2.6)
list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake-modules)
list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake-modules/src)
set (DATADIR "${CMAKE_INSTALL_PREFIX}/share")
Tommy's suggestion also worked for me, but then the cmake and my app files got all mixed up... if that was confusing for a hello world app I wonder what would happen in an actual project. lol
Just to make it clear, the first lines of my hello-world's CMakeLists.txt now look like this:
project (hello-again) required (VERSION 2.6) SOURCE_ DIR}/cmake- modules) SOURCE_ DIR}/cmake- modules/ src) INSTALL_ PREFIX} /share" )
cmake_minimum_
list (APPEND CMAKE_MODULE_PATH ${CMAKE_
list (APPEND CMAKE_MODULE_PATH ${CMAKE_
set (DATADIR "${CMAKE_
Tommy's suggestion also worked for me, but then the cmake and my app files got all mixed up... if that was confusing for a hello world app I wonder what would happen in an actual project. lol